/*
 * Device.h
 *
 *  Created on: Apr 19, 2011
 *      Author: Bart
 */

#ifndef DEVICE_H_
#define DEVICE_H_

#include <iostream>
using namespace std;

class Device {
	friend ostream& operator <<(ostream&, Device&);
public:
	Device(int, int, string);
	virtual ~Device();
	int getMinor();
	int getMajor();
private:
	int  majorNumber;
	int  minorNumber;
	string righttype;
	char CRead();
	string BRead();

};

ostream& operator<<(ostream& output, Device& dev);

#endif /* DEVICE_H_ */
